<template>
	<web-view :src="video_src"
	fullscreen ="false"
	>
	</web-view>
</template>

<script setup>
	import {onLoad} from '@dcloudio/uni-app'
	import { ref } from 'vue';
	
	const app = getApp()
	const video_src =ref()
	onLoad((option)=>{
		getVideoData(option)
	})
	
	const getVideoData =(option)=>{
		app.globalData.utils.request({   //获取视频数据
			url:"/video_src",
			data:{
				hid:option.hid
			},
			success:res =>{
				video_src.value =res[option.vid].videos
			},
			fail:err =>{
				console.log(err)
			}
		})	
	}
</script>

<style>

</style>
